package wspinpass;

public class ManejoPinPasProxy implements wspinpass.ManejoPinPas {
  private String _endpoint = null;
  private wspinpass.ManejoPinPas manejoPinPas = null;
  
  public ManejoPinPasProxy() {
    _initManejoPinPasProxy();
  }
  
  public ManejoPinPasProxy(String endpoint) {
    _endpoint = endpoint;
    _initManejoPinPasProxy();
  }
  
  private void _initManejoPinPasProxy() {
    try {
      manejoPinPas = (new wspinpass.ManejoPinPasServiceLocator()).getManejoPinPas();
      if (manejoPinPas != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)manejoPinPas)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)manejoPinPas)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (manejoPinPas != null)
      ((javax.xml.rpc.Stub)manejoPinPas)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public wspinpass.ManejoPinPas getManejoPinPas() {
    if (manejoPinPas == null)
      _initManejoPinPasProxy();
    return manejoPinPas;
  }
  
  public java.lang.String getCoordenadas() throws java.rmi.RemoteException{
    if (manejoPinPas == null)
      _initManejoPinPasProxy();
    return manejoPinPas.getCoordenadas();
  }
  
  public int validador(java.lang.String coordenada) throws java.rmi.RemoteException{
    if (manejoPinPas == null)
      _initManejoPinPasProxy();
    return manejoPinPas.validador(coordenada);
  }
  
  
}